﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
using System.Data.SqlClient;

namespace WineDAL
{
   public  class WineRegisterDAL
    {
       SQLHelper helper = new SQLHelper();

       /// <summary>
       /// 注册
       /// </summary>
       /// <param name="user"></param>
       /// <returns></returns>
       public int RegisterAddDo(WineModel.Users user)
       {
           SqlParameter[] par = { new SqlParameter("@name", user.UsersName), new SqlParameter("@account", user.UsersAccount), new SqlParameter("@pwd", user.UsersPwd) };

           return helper.ExecNonquery_Proc("Users_Add", par);
       }
    }
}
